﻿using System;
using System.Collections;
using System.Collections.Generic;

namespace BotonJXC.Entity
{
    /// <summary>
    /// OrderS
    /// </summary>
    public class Orders:BaseEntity
    {
        public Orders()
		{
			
		}
		
		public virtual int OrderId{ get; set; }
		/// <summary>
		/// 1: 分店订货单 
        /// 2: 配送中心采购订单 
        /// 3: 配送中心供应商订单
        /// 4: 采购中心采购订单
		/// </summary>
		public virtual string OrderType{ get; set; }
        /// <summary>
        /// 订单编号
        /// </summary>
		public virtual string OrderSn{ get; set; }
		//public virtual Int32? BigStoreId{ get; set; }
        /// <summary>
        /// 配送地
        /// </summary>
        public virtual Warehouse BigWarehouse { get; set; }//大仓库存地
        ///<summary>
        /// 配送地
        /// </summary>
        public virtual Warehouse Warehouse { get; set; }//存货地
 
		//public virtual Int32? DepId{ get; set; }
        /// <summary>
        /// 管理课
        /// </summary>
        public virtual Department Department { get; set; }
		//public virtual Int32? SupplierId{ get; set; }
        /// <summary>
        /// 供应商
        /// </summary>
        public virtual Supplier Supplier { get; set; }//供应商
        /// <summary>
        /// 辅助供应商
        /// </summary>
        public virtual Supplier Ssupplier { get; set; }//辅助供应商
		//public virtual Int32? CreaterId{ get; set; }
        /// <summary>
        /// 制单人
        /// </summary>
        public virtual Account Account { get; set; } 
        /// <summary>
        /// 制单时间
        /// </summary>
		public virtual DateTime? CreateTime{ get; set; }
		//public virtual Int32? AuditUser{ get; set; }
        /// <summary>
        /// 审核人
        /// </summary>
        public virtual Account AuditAccount { get; set; }
        /// <summary>
        /// 审核状态
        /// </summary>
		public virtual string AuditStatus{ get; set; }
        /// <summary>
        /// 审核时间
        /// </summary>
		public virtual DateTime? AuditTime{ get; set; }
        /// <summary>
        /// 审核状态
        /// </summary>
		public virtual string AuditRemark{ get; set; }
        /// <summary>
        /// 配送状态
        /// </summary>
		public virtual string OutStatus{ get; set; }
        /// <summary>
        /// 入库状态
        /// </summary>
		public virtual string InStatus{ get; set; }

		//public virtual Int32? OutId{ get; set; }
		//public virtual Int32? InId{ get; set; }
        /// <summary>
        /// 出库单
        /// </summary>
        public virtual OutStocks OutStocks { get; set; }
        /// <summary>
        /// 入库单
        /// </summary>
        public virtual InStocks InStocks { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
		public virtual string Remark{ get; set; }
        /// <summary>
        /// 订单来源Id
        /// </summary>
		public virtual Int32? SourceId{ get; set; }
		/// <summary>
		/// 1: 分店管理
        /// 2: 配送中心
        /// 3: 采购管理
		/// </summary>
		public virtual string CreatePlace{ get; set; }
		/// <summary>
		/// 用于数据权限控制
        /// 归属门店
		/// </summary>
		public virtual Int32? OrgId{ get; set; }
        /// <summary>
        /// 归属部门
        /// </summary>
        public virtual Int32? OrgDepId { get; set; }
        /// <summary>
        /// 货品信息
        /// </summary>
        public virtual IList<OrderProducts> ProductsList { get; set; }
        /// <summary>
        /// 要求送货日
        /// </summary>
        public virtual string DeliveryDate { get; set; }
        /// <summary>
        /// 结算方式
        /// </summary>
        public virtual Payment Payment { get; set; }
        /// <summary>
        /// 业务员
        /// </summary>
        public virtual string Salesman { get; set; }
        /// <summary>
        /// 打印次数
        /// </summary>
        public virtual Int32 PrintTime { get; set; }
        /// <summary>
        /// 有效期(天)
        /// </summary>
        public virtual Int32 EffDay { get; set; }
    }
}